import os
import pandas as pd
# 遍历文件夹并获取文件名

folder_path = '../data/temp'
save_path = "../data/finishedData/utf8"


for filename in os.listdir(folder_path):
    if ".csv" in filename:
        df = pd.read_csv(folder_path+"/"+filename,encoding="gbk",index_col=0)
        df.to_csv(save_path+"/"+filename,encoding="utf8",index=False)
        print(filename)


